package com.deram.ctin.serv.search;

import com.deram.ctin.dependencies.serv.config.ServConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * Created by xhw on 2017/09/11.
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableAutoConfiguration(exclude={
        JpaRepositoriesAutoConfiguration.class // 禁止springboot自动加载持久化bean
})
@EnableFeignClients({"com.deram.ctin.serv.enter","com.deram.ctin.serv.business"})
@Import({ServConfig.class})
public class Application {

    public static void main(String[] args){
        SpringApplication.run(Application.class,args);
    }
}
